// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Fluent;
using Elastic.Clients.Elasticsearch.Serialization;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.Nodes;

public sealed partial class Discovery
{
	[JsonInclude, JsonPropertyName("cluster_applier_stats")]
	public Elastic.Clients.Elasticsearch.Nodes.ClusterAppliedStats? ClusterApplierStats { get; init; }

	/// <summary>
	/// <para>Contains statistics for the cluster state queue of the node.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("cluster_state_queue")]
	public Elastic.Clients.Elasticsearch.Nodes.ClusterStateQueue? ClusterStateQueue { get; init; }

	/// <summary>
	/// <para>Contains low-level statistics about how long various activities took during cluster state updates while the node was the elected master.<br/>Omitted if the node is not master-eligible.<br/>Every field whose name ends in `_time` within this object is also represented as a raw number of milliseconds in a field whose name ends in `_time_millis`.<br/>The human-readable fields with a `_time` suffix are only returned if requested with the `?human=true` query parameter.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("cluster_state_update")]
	public IReadOnlyDictionary<string, Elastic.Clients.Elasticsearch.Nodes.ClusterStateUpdate>? ClusterStateUpdate { get; init; }

	/// <summary>
	/// <para>Contains statistics for the published cluster states of the node.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("published_cluster_states")]
	public Elastic.Clients.Elasticsearch.Nodes.PublishedClusterStates? PublishedClusterStates { get; init; }
	[JsonInclude, JsonPropertyName("serialized_cluster_states")]
	public Elastic.Clients.Elasticsearch.Nodes.SerializedClusterState? SerializedClusterStates { get; init; }
}